FROM openjdk:8-jdk-alpine
MAINTAINER xutao1989103@gmail.com

VOLUME /logs
WORKDIR /work

ENV SPRING_PROFILE=prod

COPY target/*.jar app.jar
ENTRYPOINT ["sh", "-c", "java ${JAVA_OPTS} -Dspring.profiles.active=${SPRING_PROFILE} -jar /work/app.jar"]